<?php

namespace Controllers\BaseController;

/**
 * BaseController
 */
class BaseController
{
    protected $view;

    public function __construct()
    {

    }

    public function __destruct()
    {
        $view = $this->view;

        if ( $view instanceof View ) {

            extract($view->data);

            require $view->view;

        }

    }

}


